<?php


namespace dsp\factory\abstracts;


class FactoryProducer
{

    const COLOR = 'color';
    const SHAPE = 'shape';

    public static function getFactory(string $choice): AbstractFactory
    {
        switch ($choice) {
            case static::COLOR:
                return new ColorFactory();
            case static::SHAPE:
                return new ShapeFactory();
        }
    }

}